package com.diver.flinkdemo.utils.Trd;

import cn.hutool.http.HttpRequest;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author liuC
 * @Date 2022/8/15 0015 10:43
 * @Describe
 */
@Slf4j
public class ZgyzhRequestUtil {
    public String post(String url, JSONObject params){
        String result = HttpRequest.post(url).header("Content-Type", "application/json;charset=utf-8").body(params.toJSONString()).execute().body();
        log.info("url:{}, 参数：{}, 结果: {}", url, params, result);
        return result;
    }
}
